.class public Les/y70;
.super Les/a80;
.source "ArchiveExtractHandler.java"


# instance fields
.field private A:Ljava/lang/String;

.field private B:Landroid/widget/ProgressBar;

.field private C:Landroid/widget/TextView;

.field private D:Landroid/widget/TextView;

.field private E:Landroid/widget/TextView;

.field private F:Landroid/widget/ImageView;

.field private G:Landroid/widget/TextView;

.field private H:Ljava/lang/String;

.field private I:Lcom/estrongs/android/pop/app/compress/b;

.field private J:Lcom/estrongs/android/ui/notification/c;

.field private K:I

.field private L:Z

.field private M:Ljava/lang/String;

.field private v:Ljava/lang/String;

.field private w:J

.field private x:Ljava/lang/String;

.field private y:I

.field private z:Landroid/content/Context;


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/estrongs/android/pop/app/compress/b;Ljava/lang/String;Z)V
    .locals 2

    .line 1
    invoke-direct {p0}, Les/a80;-><init>()V

    const-wide/16 v0, 0x0

    .line 2
    iput-wide v0, p0, Les/y70;->w:J

    const-string v0, ""

    .line 3
    iput-object v0, p0, Les/y70;->x:Ljava/lang/String;

    const v0, 0x7fffffff

    .line 4
    iput v0, p0, Les/y70;->y:I

    const/4 v0, 0x0

    .line 5
    iput-object v0, p0, Les/y70;->B:Landroid/widget/ProgressBar;

    const/4 v0, -0x1

    .line 6
    iput v0, p0, Les/y70;->K:I

    const/4 v0, 0x0

    .line 7
    iput-boolean v0, p0, Les/y70;->L:Z

    .line 8
    iput-boolean p4, p0, Les/y70;->L:Z

    .line 9
    iput-object p1, p0, Les/y70;->z:Landroid/content/Context;

    .line 10
    iput-object p2, p0, Les/y70;->I:Lcom/estrongs/android/pop/app/compress/b;

    .line 11
    iput-object p3, p0, Les/y70;->A:Ljava/lang/String;

    return-void
.end method

.method private static a(JJ)D
    .locals 3

    const-wide/16 v0, 0x0

    cmp-long v2, p2, v0

    if-nez v2, :cond_0

    const-wide/high16 p0, 0x3ff0000000000000L    # 1.0

    return-wide p0

    :cond_0
    long-to-float p0, p0

    long-to-float p1, p2

    div-float/2addr p0, p1

    const/high16 p1, 0x42c80000    # 100.0f

    mul-float p0, p0, p1

    .line 4
    new-instance p1, Ljava/math/BigDecimal;

    float-to-double p2, p0

    invoke-direct {p1, p2, p3}, Ljava/math/BigDecimal;-><init>(D)V

    const/4 p0, 0x2

    const/4 p2, 0x4

    .line 5
    invoke-virtual {p1, p0, p2}, Ljava/math/BigDecimal;->setScale(II)Ljava/math/BigDecimal;

    move-result-object p0

    invoke-virtual {p0}, Ljava/math/BigDecimal;->doubleValue()D

    move-result-wide p0

    return-wide p0
.end method

.method private a(I)V
    .locals 4

    .line 6
    iget-object v0, p0, Les/y70;->F:Landroid/widget/ImageView;

    if-nez v0, :cond_0

    return-void

    :cond_0
    const/4 v1, 0x1

    if-eq p1, v1, :cond_5

    const/4 v1, 0x2

    const v2, 0x7f110425

    const v3, 0x7f08099c

    if-eq p1, v1, :cond_4

    const/4 v1, 0x3

    if-eq p1, v1, :cond_1

    const/4 v1, 0x4

    if-eq p1, v1, :cond_4

    .line 7
    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 8
    iget-object p1, p0, Les/y70;->G:Landroid/widget/TextView;

    iget-object v0, p0, Les/y70;->z:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_0

    .line 9
    :cond_1
    iget-boolean p1, p0, Les/y70;->L:Z

    if-eqz p1, :cond_2

    .line 10
    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 11
    iget-object p1, p0, Les/y70;->G:Landroid/widget/TextView;

    iget-object v0, p0, Les/y70;->z:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_0

    :cond_2
    const p1, 0x7f0809b8

    .line 12
    invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 13
    iget-object p1, p0, Les/y70;->F:Landroid/widget/ImageView;

    instance-of v0, p1, Lcom/estrongs/android/pop/esclasses/ESImageView;

    if-eqz v0, :cond_3

    .line 14
    check-cast p1, Lcom/estrongs/android/pop/esclasses/ESImageView;

    iget-object v0, p0, Les/y70;->z:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f08044a

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    invoke-virtual {p1, v0}, Lcom/estrongs/android/pop/esclasses/ESImageView;->setTopCornerImage(Landroid/graphics/drawable/Drawable;)V

    .line 15
    iget-object p1, p0, Les/y70;->F:Landroid/widget/ImageView;

    invoke-virtual {p1}, Landroid/widget/ImageView;->invalidate()V

    .line 16
    :cond_3
    invoke-static {}, Lcom/estrongs/android/pop/utils/l;->b()Lcom/estrongs/android/pop/utils/l;

    move-result-object p1

    iget-object v0, p0, Les/y70;->v:Ljava/lang/String;

    invoke-virtual {p1, v0}, Lcom/estrongs/android/pop/utils/l;->b(Ljava/lang/String;)V

    .line 17
    iget-object p1, p0, Les/y70;->G:Landroid/widget/TextView;

    iget-object v0, p0, Les/y70;->z:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f110424

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 18
    :cond_4
    iget-object p1, p0, Les/y70;->F:Landroid/widget/ImageView;

    invoke-virtual {p1, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 19
    iget-object p1, p0, Les/y70;->G:Landroid/widget/TextView;

    iget-object v0, p0, Les/y70;->z:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 20
    :cond_5
    check-cast v0, Lcom/estrongs/android/pop/esclasses/ESImageView;

    const/4 p1, 0x0

    invoke-virtual {v0, p1}, Lcom/estrongs/android/pop/esclasses/ESImageView;->setTopCornerImage(Landroid/graphics/drawable/Drawable;)V

    .line 21
    iget-object p1, p0, Les/y70;->F:Landroid/widget/ImageView;

    invoke-virtual {p1}, Landroid/widget/ImageView;->invalidate()V

    .line 22
    iget-object p1, p0, Les/y70;->F:Landroid/widget/ImageView;

    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v0

    const v1, 0x7f08097a

    const v2, 0x7f06029b

    invoke-virtual {v0, v1, v2}, Lcom/estrongs/android/ui/theme/b;->b(II)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 23
    iget-object p1, p0, Les/y70;->G:Landroid/widget/TextView;

    iget-object v0, p0, Les/y70;->z:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f110423

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_0
    return-void
.end method

.method private b()V
    .locals 4

    .line 1
    new-instance v0, Lcom/estrongs/android/ui/notification/c;

    iget-object v1, p0, Les/y70;->z:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/estrongs/android/ui/notification/c;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Les/y70;->J:Lcom/estrongs/android/ui/notification/c;

    .line 2
    iget-boolean v1, p0, Les/y70;->L:Z

    if-eqz v1, :cond_0

    const v1, 0x7f0807ab

    .line 3
    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/notification/c;->a(I)V

    .line 4
    iget-object v0, p0, Les/y70;->J:Lcom/estrongs/android/ui/notification/c;

    iget-object v1, p0, Les/y70;->z:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f1108dd

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/notification/c;->a(Ljava/lang/CharSequence;)V

    goto :goto_0

    :cond_0
    const v1, 0x7f0807b0

    .line 5
    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/notification/c;->a(I)V

    .line 6
    iget-object v0, p0, Les/y70;->J:Lcom/estrongs/android/ui/notification/c;

    iget-object v1, p0, Les/y70;->z:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f1108e4

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/notification/c;->a(Ljava/lang/CharSequence;)V

    .line 7
    :goto_0
    iget-object v0, p0, Les/y70;->J:Lcom/estrongs/android/ui/notification/c;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/notification/c;->b(Z)V

    .line 8
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    .line 9
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v2

    invoke-virtual {v2}, Landroid/app/Application;->getPackageName()Ljava/lang/String;

    move-result-object v2

    const-class v3, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    .line 10
    invoke-virtual {v3}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v3

    .line 11
    invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string v2, "compress"

    .line 12
    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 13
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    const-string v3, "application"

    invoke-virtual {v0, v3, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 14
    iget-object v2, p0, Les/y70;->J:Lcom/estrongs/android/ui/notification/c;

    invoke-virtual {v2}, Lcom/estrongs/android/ui/notification/c;->b()I

    move-result v2

    const-string v3, "notification_id"

    invoke-virtual {v0, v3, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 15
    iget-object v2, p0, Les/y70;->J:Lcom/estrongs/android/ui/notification/c;

    invoke-virtual {v2, v0, v1}, Lcom/estrongs/android/ui/notification/c;->b(Landroid/content/Intent;Z)V

    .line 16
    iget-object v0, p0, Les/y70;->J:Lcom/estrongs/android/ui/notification/c;

    iget-object v1, p0, Les/y70;->M:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/notification/c;->b(Ljava/lang/CharSequence;)V

    return-void
.end method


# virtual methods
.method public a()I
    .locals 1

    .line 24
    iget v0, p0, Les/y70;->K:I

    return v0
.end method

.method public a(Landroid/widget/ImageView;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/y70;->F:Landroid/widget/ImageView;

    return-void
.end method

.method public a(Landroid/widget/ProgressBar;)V
    .locals 1

    .line 2
    iput-object p1, p0, Les/y70;->B:Landroid/widget/ProgressBar;

    .line 3
    iget v0, p0, Les/y70;->y:I

    invoke-virtual {p1, v0}, Landroid/widget/ProgressBar;->setMax(I)V

    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 0

    return-void
.end method

.method public b(Ljava/lang/String;)V
    .locals 1

    .line 17
    iput-object p1, p0, Les/y70;->H:Ljava/lang/String;

    .line 18
    iget-object v0, p0, Les/y70;->I:Lcom/estrongs/android/pop/app/compress/b;

    if-nez v0, :cond_0

    iget-object v0, p0, Les/y70;->J:Lcom/estrongs/android/ui/notification/c;

    if-eqz v0, :cond_0

    .line 19
    invoke-virtual {v0, p1}, Lcom/estrongs/android/ui/notification/c;->b(Ljava/lang/CharSequence;)V

    :cond_0
    return-void
.end method

.method public c(Ljava/lang/String;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/y70;->M:Ljava/lang/String;

    return-void
.end method

.method public d(Landroid/widget/TextView;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/y70;->C:Landroid/widget/TextView;

    return-void
.end method

.method public d(Ljava/lang/String;)V
    .locals 0

    .line 2
    iput-object p1, p0, Les/y70;->v:Ljava/lang/String;

    return-void
.end method

.method public g(Landroid/widget/TextView;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/y70;->G:Landroid/widget/TextView;

    .line 2
    iget p1, p0, Les/y70;->K:I

    invoke-direct {p0, p1}, Les/y70;->a(I)V

    return-void
.end method

.method public h(Landroid/widget/TextView;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/y70;->E:Landroid/widget/TextView;

    return-void
.end method

.method public handleMessage(Landroid/os/Message;)V
    .locals 11

    .line 1
    iget v0, p1, Landroid/os/Message;->what:I

    const/4 v1, 0x4

    const/4 v2, 0x2

    const/4 v3, 0x1

    const/4 v4, 0x0

    if-ne v2, v0, :cond_3

    .line 2
    iget-object v0, p0, Les/y70;->A:Ljava/lang/String;

    const-string v5, ""

    if-eqz v0, :cond_1

    const-string v6, "{0}"

    .line 3
    invoke-virtual {v0, v6}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    if-gez v0, :cond_0

    .line 4
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v5, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    .line 5
    :cond_0
    iget-object v0, p0, Les/y70;->A:Ljava/lang/String;

    new-array v5, v3, [Ljava/lang/Object;

    iget-object v6, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    aput-object v6, v5, v4

    invoke-static {v0, v5}, Ljava/text/MessageFormat;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    .line 6
    :cond_1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v5, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    :goto_0
    const-string v5, "ArchiveHandler"

    .line 7
    invoke-static {v5, v0}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 8
    iget-object v5, p0, Les/y70;->z:Landroid/content/Context;

    invoke-static {v5, v0, v3}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    .line 9
    iget-object v0, p0, Les/y70;->I:Lcom/estrongs/android/pop/app/compress/b;

    if-eqz v0, :cond_2

    .line 10
    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/compress/b;->b()V

    .line 11
    :cond_2
    iput v1, p0, Les/y70;->K:I

    .line 12
    iget-object v0, p0, Les/y70;->v:Ljava/lang/String;

    invoke-static {v0}, Lcom/estrongs/android/view/CompressGridViewWrapper;->q(Ljava/lang/String;)V

    .line 13
    iget-object v0, p0, Les/y70;->v:Ljava/lang/String;

    invoke-static {v0}, Lcom/estrongs/android/view/CompressGridViewWrapper;->p(Ljava/lang/String;)V

    .line 14
    iget-object v0, p0, Les/y70;->J:Lcom/estrongs/android/ui/notification/c;

    if-eqz v0, :cond_3

    .line 15
    invoke-virtual {v0}, Lcom/estrongs/android/ui/notification/c;->a()V

    .line 16
    :cond_3
    iget v0, p1, Landroid/os/Message;->what:I

    const/4 v5, 0x3

    const/16 v6, 0x8

    if-ne v3, v0, :cond_c

    .line 17
    iget-object v0, p0, Les/y70;->B:Landroid/widget/ProgressBar;

    iget v7, p0, Les/y70;->y:I

    invoke-virtual {v0, v7}, Landroid/widget/ProgressBar;->setProgress(I)V

    .line 18
    iget-object v0, p0, Les/y70;->J:Lcom/estrongs/android/ui/notification/c;

    if-eqz v0, :cond_4

    .line 19
    iget v7, p0, Les/y70;->y:I

    invoke-virtual {v0, v7}, Lcom/estrongs/android/ui/notification/c;->d(I)V

    .line 20
    :cond_4
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    if-eqz v0, :cond_5

    .line 21
    iget-object v0, p0, Les/y70;->z:Landroid/content/Context;

    const v7, 0x7f1106b0

    invoke-virtual {v0, v7}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v7

    new-array v8, v3, [Ljava/lang/Object;

    iget-object v9, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-virtual {v9}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v9

    aput-object v9, v8, v4

    invoke-static {v7, v8}, Ljava/text/MessageFormat;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v7

    invoke-static {v0, v7, v3}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    .line 22
    iput v5, p0, Les/y70;->K:I

    .line 23
    invoke-direct {p0, v5}, Les/y70;->a(I)V

    .line 24
    :cond_5
    iget v0, p1, Landroid/os/Message;->arg1:I

    const/16 v7, 0xa

    if-ne v0, v7, :cond_6

    const/4 v0, 0x1

    goto :goto_1

    :cond_6
    const/4 v0, 0x0

    :goto_1
    if-eqz v0, :cond_7

    .line 25
    new-instance v7, Landroid/content/Intent;

    const-string v8, "com.estrongs.android.intent.action.ARCHIVE_DONE"

    invoke-direct {v7, v8}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 26
    iget-object v8, p0, Les/y70;->H:Ljava/lang/String;

    const-string v9, "output_path"

    invoke-virtual {v7, v9, v8}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 27
    iget-object v8, p0, Les/y70;->z:Landroid/content/Context;

    check-cast v8, Landroid/app/Activity;

    invoke-virtual {v8, v7}, Landroid/app/Activity;->sendBroadcast(Landroid/content/Intent;)V

    goto :goto_2

    .line 28
    :cond_7
    iget-object v7, p0, Les/y70;->I:Lcom/estrongs/android/pop/app/compress/b;

    if-eqz v7, :cond_8

    .line 29
    invoke-virtual {v7}, Lcom/estrongs/android/pop/app/compress/b;->b()V

    .line 30
    :cond_8
    :goto_2
    iget-object v7, p0, Les/y70;->J:Lcom/estrongs/android/ui/notification/c;

    if-eqz v7, :cond_a

    if-eqz v0, :cond_9

    .line 31
    iget-object v8, p0, Les/y70;->z:Landroid/content/Context;

    const v9, 0x7f110036

    invoke-virtual {v8, v9}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8}, Lcom/estrongs/android/ui/notification/c;->a(Ljava/lang/CharSequence;)V

    goto :goto_3

    .line 32
    :cond_9
    iget-object v8, p0, Les/y70;->z:Landroid/content/Context;

    const v9, 0x7f110046

    invoke-virtual {v8, v9}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8}, Lcom/estrongs/android/ui/notification/c;->a(Ljava/lang/CharSequence;)V

    .line 33
    :goto_3
    iget-object v7, p0, Les/y70;->J:Lcom/estrongs/android/ui/notification/c;

    iget-object v8, p0, Les/y70;->z:Landroid/content/Context;

    const v9, 0x7f110746

    invoke-virtual {v8, v9}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8}, Lcom/estrongs/android/ui/notification/c;->b(Ljava/lang/CharSequence;)V

    .line 34
    iget-object v7, p0, Les/y70;->J:Lcom/estrongs/android/ui/notification/c;

    invoke-virtual {v7}, Lcom/estrongs/android/ui/notification/c;->f()V

    .line 35
    iget-object v7, p0, Les/y70;->J:Lcom/estrongs/android/ui/notification/c;

    invoke-virtual {v7, v4}, Lcom/estrongs/android/ui/notification/c;->b(Z)V

    .line 36
    :cond_a
    iget-object v7, p0, Les/y70;->v:Ljava/lang/String;

    invoke-static {v7}, Lcom/estrongs/android/view/CompressGridViewWrapper;->q(Ljava/lang/String;)V

    .line 37
    iget-object v7, p0, Les/y70;->v:Ljava/lang/String;

    invoke-static {v7}, Lcom/estrongs/android/view/CompressGridViewWrapper;->p(Ljava/lang/String;)V

    .line 38
    iget-object v7, p0, Les/y70;->B:Landroid/widget/ProgressBar;

    invoke-virtual {v7, v6}, Landroid/widget/ProgressBar;->setVisibility(I)V

    .line 39
    iget-object v7, p0, Les/y70;->D:Landroid/widget/TextView;

    invoke-virtual {v7, v4}, Landroid/widget/TextView;->setVisibility(I)V

    .line 40
    iget-object v7, p0, Les/y70;->E:Landroid/widget/TextView;

    invoke-virtual {v7, v4}, Landroid/widget/TextView;->setVisibility(I)V

    .line 41
    iget-object v7, p0, Les/y70;->C:Landroid/widget/TextView;

    invoke-virtual {v7, v6}, Landroid/widget/TextView;->setVisibility(I)V

    if-eqz v0, :cond_b

    .line 42
    new-instance v0, Ljava/text/SimpleDateFormat;

    const-string v7, "yyyy.MM.dd"

    invoke-direct {v0, v7}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    .line 43
    new-instance v7, Ljava/io/File;

    iget-object v8, p0, Les/y70;->v:Ljava/lang/String;

    invoke-direct {v7, v8}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 44
    invoke-virtual {v7}, Ljava/io/File;->exists()Z

    move-result v8

    if-eqz v8, :cond_b

    .line 45
    iget-object v8, p0, Les/y70;->D:Landroid/widget/TextView;

    invoke-virtual {v7}, Ljava/io/File;->length()J

    move-result-wide v9

    invoke-static {v9, v10}, Lcom/estrongs/fs/util/f;->g(J)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 46
    :try_start_0
    iget-object v8, p0, Les/y70;->E:Landroid/widget/TextView;

    invoke-virtual {v7}, Ljava/io/File;->lastModified()J

    move-result-wide v9

    invoke-static {v9, v10}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v7

    invoke-virtual {v0, v7}, Ljava/text/SimpleDateFormat;->format(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v8, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_4

    :catch_0
    move-exception v0

    .line 47
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_b
    :goto_4
    const/16 v0, 0xb

    .line 48
    iget v7, p1, Landroid/os/Message;->arg1:I

    if-ne v0, v7, :cond_c

    iget v0, p0, Les/y70;->K:I

    if-ne v0, v5, :cond_c

    .line 49
    iget-object v0, p0, Les/y70;->z:Landroid/content/Context;

    invoke-static {v0}, Les/sx;->a(Landroid/content/Context;)V

    :cond_c
    const/4 v0, 0x7

    .line 50
    iget v7, p1, Landroid/os/Message;->what:I

    if-ne v0, v7, :cond_e

    .line 51
    iget-object p1, p0, Les/y70;->J:Lcom/estrongs/android/ui/notification/c;

    if-eqz p1, :cond_d

    .line 52
    invoke-virtual {p1}, Lcom/estrongs/android/ui/notification/c;->a()V

    .line 53
    :cond_d
    iput v2, p0, Les/y70;->K:I

    .line 54
    invoke-direct {p0, v2}, Les/y70;->a(I)V

    return-void

    :cond_e
    if-ne v5, v7, :cond_f

    .line 55
    iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p0, p1}, Les/y70;->a(Ljava/lang/String;)V

    return-void

    :cond_f
    if-ne v1, v7, :cond_11

    .line 56
    invoke-direct {p0}, Les/y70;->b()V

    .line 57
    iget-object p1, p0, Les/y70;->J:Lcom/estrongs/android/ui/notification/c;

    invoke-virtual {p1}, Lcom/estrongs/android/ui/notification/c;->g()V

    .line 58
    iput v3, p0, Les/y70;->K:I

    .line 59
    invoke-direct {p0, v3}, Les/y70;->a(I)V

    .line 60
    iget-wide v3, p0, Les/a80;->b:J

    invoke-static {v3, v4}, Lcom/estrongs/fs/util/f;->b(J)J

    move-result-wide v3

    iput-wide v3, p0, Les/y70;->w:J

    .line 61
    invoke-static {v3, v4}, Lcom/estrongs/fs/util/f;->e(J)Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Les/y70;->x:Ljava/lang/String;

    .line 62
    iget-wide v3, p0, Les/y70;->w:J

    const-wide/16 v5, 0x0

    cmp-long p1, v3, v5

    if-nez p1, :cond_10

    const-wide/16 v3, 0x1

    .line 63
    iput-wide v3, p0, Les/y70;->w:J

    .line 64
    :cond_10
    new-instance p1, Ljava/math/BigDecimal;

    iget-wide v3, p0, Les/a80;->b:J

    long-to-double v3, v3

    iget-wide v5, p0, Les/y70;->w:J

    long-to-double v5, v5

    invoke-static {v3, v4}, Ljava/lang/Double;->isNaN(D)Z

    invoke-static {v5, v6}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v3, v5

    invoke-direct {p1, v3, v4}, Ljava/math/BigDecimal;-><init>(D)V

    .line 65
    invoke-virtual {p1, v2, v1}, Ljava/math/BigDecimal;->setScale(II)Ljava/math/BigDecimal;

    move-result-object p1

    invoke-virtual {p1}, Ljava/math/BigDecimal;->doubleValue()D

    .line 66
    iget-object p1, p0, Les/y70;->B:Landroid/widget/ProgressBar;

    iget v0, p0, Les/y70;->y:I

    invoke-virtual {p1, v0}, Landroid/widget/ProgressBar;->setMax(I)V

    .line 67
    iget-object p1, p0, Les/y70;->J:Lcom/estrongs/android/ui/notification/c;

    iget v0, p0, Les/y70;->y:I

    invoke-virtual {p1, v0}, Lcom/estrongs/android/ui/notification/c;->b(I)V

    return-void

    :cond_11
    const/4 p1, 0x6

    if-ne p1, v7, :cond_16

    .line 68
    iget-object p1, p0, Les/y70;->B:Landroid/widget/ProgressBar;

    invoke-virtual {p1, v4}, Landroid/widget/ProgressBar;->setVisibility(I)V

    .line 69
    iget-object p1, p0, Les/y70;->D:Landroid/widget/TextView;

    invoke-virtual {p1, v6}, Landroid/widget/TextView;->setVisibility(I)V

    .line 70
    iget-object p1, p0, Les/y70;->E:Landroid/widget/TextView;

    invoke-virtual {p1, v6}, Landroid/widget/TextView;->setVisibility(I)V

    .line 71
    iget-object p1, p0, Les/y70;->C:Landroid/widget/TextView;

    invoke-virtual {p1, v4}, Landroid/widget/TextView;->setVisibility(I)V

    .line 72
    iget-wide v3, p0, Les/a80;->e:J

    invoke-static {v3, v4}, Lcom/estrongs/fs/util/f;->b(J)J

    move-result-wide v3

    .line 73
    new-instance p1, Ljava/math/BigDecimal;

    iget-wide v5, p0, Les/a80;->e:J

    long-to-double v5, v5

    long-to-double v3, v3

    invoke-static {v5, v6}, Ljava/lang/Double;->isNaN(D)Z

    invoke-static {v3, v4}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v5, v3

    invoke-direct {p1, v5, v6}, Ljava/math/BigDecimal;-><init>(D)V

    .line 74
    invoke-virtual {p1, v2, v1}, Ljava/math/BigDecimal;->setScale(II)Ljava/math/BigDecimal;

    move-result-object p1

    invoke-virtual {p1}, Ljava/math/BigDecimal;->doubleValue()D

    .line 75
    iget-wide v0, p0, Les/a80;->e:J

    iget-wide v2, p0, Les/a80;->b:J

    invoke-static {v0, v1, v2, v3}, Les/y70;->a(JJ)D

    move-result-wide v0

    .line 76
    iget-wide v2, p0, Les/a80;->e:J

    iget-wide v4, p0, Les/a80;->b:J

    cmp-long p1, v2, v4

    if-lez p1, :cond_12

    const-wide v0, 0x4058800000000000L    # 98.0

    .line 77
    :cond_12
    iget p1, p0, Les/y70;->y:I

    int-to-double v2, p1

    const-wide/high16 v4, 0x4059000000000000L    # 100.0

    div-double v6, v0, v4

    invoke-static {v2, v3}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v2, v2, v6

    double-to-int p1, v2

    .line 78
    iget-object v2, p0, Les/y70;->C:Landroid/widget/TextView;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v0, v1}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    const-string v6, "%"

    invoke-virtual {v3, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    cmpg-double v2, v0, v4

    if-gez v2, :cond_14

    .line 79
    iget v0, p0, Les/y70;->y:I

    if-lt p1, v0, :cond_13

    .line 80
    div-int/lit8 p1, v0, 0xa

    sub-int p1, v0, p1

    .line 81
    :cond_13
    iget-object v0, p0, Les/y70;->B:Landroid/widget/ProgressBar;

    invoke-virtual {v0, p1}, Landroid/widget/ProgressBar;->setProgress(I)V

    .line 82
    iget-object v0, p0, Les/y70;->J:Lcom/estrongs/android/ui/notification/c;

    if-eqz v0, :cond_15

    .line 83
    invoke-virtual {v0, p1}, Lcom/estrongs/android/ui/notification/c;->d(I)V

    goto :goto_5

    .line 84
    :cond_14
    iget-object p1, p0, Les/y70;->B:Landroid/widget/ProgressBar;

    iget v0, p0, Les/y70;->y:I

    invoke-virtual {p1, v0}, Landroid/widget/ProgressBar;->setProgress(I)V

    .line 85
    iget-object p1, p0, Les/y70;->J:Lcom/estrongs/android/ui/notification/c;

    if-eqz p1, :cond_15

    .line 86
    iget v0, p0, Les/y70;->y:I

    invoke-virtual {p1, v0}, Lcom/estrongs/android/ui/notification/c;->d(I)V

    :cond_15
    :goto_5
    return-void

    :cond_16
    const/4 p1, 0x5

    if-ne p1, v7, :cond_17

    :cond_17
    return-void
.end method

.method public i(Landroid/widget/TextView;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/y70;->D:Landroid/widget/TextView;

    return-void
.end method
